package it.tava.andbudget.data.resource;

import it.tava.andbudget.data.DataManager;
import it.tava.andbudget.data.DbManager;

public class ResourceManagerFactory {

	public static ResourceManager getResourceManager(DataManager manager) {
		if(manager instanceof XmlResourceManager) {
			return new XmlResourceManager();
		}
		else if(manager instanceof DbManager) {
			return new DbResourceManager();
		}
		else {
			//future improvements?
			return null;
		}
	}
}
